package cn.exrick.xboot.modules.transport.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author gj
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "b_company_deposit_details")
@TableName("b_company_deposit_details")
@ApiModel(value = "物流公司抵押金明细信息")
public class CompanyDepositDetails extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属物流公司的ID")
    private Long companyId;

    @ApiModelProperty(value = "关联的仓点ID")
    private Long warehouseId;

    @ApiModelProperty(value = "抵押金操作类型，可选值：Recharge, Deduction")
    private String depositType;

    @ApiModelProperty(value = "抵押金操作金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "关联的订单ID")
    private Long orderId;

    @ApiModelProperty(value = "抵押金操作人")
    private String operator;

}